import requests


class BaseMethod:
    def method_get(self, url, params=None, data=None, headers=None):
        return requests.get(url=url, params=params, data=data, headers=headers)

    def method_post(self, url, params=None, data=None, headers=None):
        return requests.post(url=url, params=params, data=data, headers=headers)

    def requests_type(self, method, url, params=None, data=None, headers=None):
        if method == 'POST' or method == 'post':
            return self.method_post(url=url, params=params, data=data, headers=headers)
        elif method == 'GET' or method == 'get':
            return self.method_get(url=url, params=params, data=data, headers=headers)


if __name__ == "__main__":
    print()
